@import "../../variable.less";
.@{prefix} {
  &-bubble {
    display: flex;
    gap: 12px;
    &-deep-think {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border-color);
      padding: 2px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s;
      background-color: #fff;
      margin-bottom: 10px;
      gap: 10px;
      &:hover {
        border-color: var(--primary-color);
      }
      &-text {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        .@{prefix}-icon {
          font-size: 10px;
        }
      }
      &-content {
        color: #666;
        border-left: 2px solid #ccc;
        padding-left: 10px;
      }
      &-loading {
        display: inline-block;
        animation: loading 1s linear infinite;
        line-height: 0;
        font-size: 12px;
        color: #999;
        @keyframes loading {
          0% {
            transform: rotate(0deg);
          }
          100% {
            transform: rotate(360deg);
          }
        }
      }
    }
    &.@{prefix}-bubble-start {
      justify-content: flex-start;
      flex-direction: row;
      .@{prefix}-bubble-box {
        align-items: flex-start;
      }
    }
    &.@{prefix}-bubble-end {
      justify-content: flex-end;
      flex-direction: row-reverse;
      .@{prefix}-bubble-box {
        align-items: flex-end;
      }
    }
    &-box {
      display: flex;
      flex-flow: column;
      flex: 1;
      overflow: auto;
    }
    &-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      &-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    &-header {
      margin-bottom: 4px;
      font-size: var(--font-size-base);
    }
    &-loading {
      display: inline-block;
      animation: loading 1s linear infinite;
      line-height: 0;
      font-size: 18px;
      color: #999;
      position: relative;
      top: 3px;
      @keyframes loading {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }
    }
    &-duration {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      background-color: #f2f2f2;
      padding: 4px 8px;
      &-text {
        color: #333;
        font-size: 12px;
      }
    }
    &-content {
      padding: 12px 16px;
      background-color: #f2f2f2;
      word-break: break-word;
      width: max-content;
      max-width: calc(100% - 42px);
      min-width: 0;
      &-normal {
        background-color: #fff;
        padding: 0;
      }
      &-round {
        border-radius: 8px;
      }
      &-square {
        border-radius: 0;
      }
      &-text {
        word-break: break-word;
      }
    }
    &-footer {
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
  }
}